<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>创建虚拟 DOM 对象 - JSX</title>
</head>
<body>
    <div id="root"></div>

    <script src="../js/react.development.js"></script>
    <script src="../js/react-dom.development.js"></script>
    <script src="../js/babel.min.js"></script>

    <script type="text/babel">
        // JSX 语法创建虚拟 DOM
        let vDOM = <div>
                <h1>Hello React 你好</h1>
                <p>React 是一个非常优秀的前端框架</p>
            </div>
        // let root = document.querySelector('#root');

        ReactDOM.render(vDOM, document.querySelector('#root'));
    </script>
</body>
</html>